//
//  LBShenheFirleVC.m
//  V-Learn
//
//  Created by Apple on 2019/1/1.
//  Copyright © 2019 yxk. All rights reserved.
//

#import "LBShenheFirleVC.h"
//申请失败
@interface LBShenheFirleVC ()

@end

@implementation LBShenheFirleVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
//    self.navigationItem.title = self.titleString;
    self.navigationItem.title = @"申请结果";
    
    UIImageView *icon = [[UIImageView alloc] init];
    icon.image = [UIImage imageNamed:@"wk_fail"];
    [self.view addSubview:icon];
    [icon makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(155*kScaleFit, 133*kScaleFit));
        make.top.mas_equalTo(150*kScaleFit);
        make.centerX.mas_equalTo(self.view);
    }];
    
    UILabel *failLab = [UILabel labelWithText:@"很遗憾你的申请暂未成功" andTextColor:rgb(102,102,102) andName:nil andFontSize:15*kScaleFit];
    [self.view addSubview:failLab];
    [failLab makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(icon.mas_bottom).mas_equalTo(20*kScaleFit);
        make.centerX.mas_equalTo(self.view);
    }];
    
    NSString *urlString = [NSString stringWithFormat:@"请联系指导老师微信:%@",self.resultContent];
    UILabel *failLab2 = [UILabel labelWithText:urlString andTextColor:rgb(102,102,102) andName:nil andFontSize:15*kScaleFit];
    [self.view addSubview:failLab2];
    [failLab2 makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(failLab.mas_bottom).mas_equalTo(18*kScaleFit);
        make.centerX.mas_equalTo(self.view);
    }];
    
//    NSString *urlString = [NSString stringWithFormat:@"联系方式: %@",self.resultContent];
//    UILabel *failLab3 = [UILabel labelWithText:urlString andTextColor:rgb(102,102,102) andName:nil andFontSize:15*kScaleFit];
//    [self.view addSubview:failLab3];
//    [failLab3 makeConstraints:^(MASConstraintMaker *make) {
//        make.top.mas_equalTo(failLab2.mas_bottom).mas_equalTo(5*kScaleFit);
//        make.centerX.mas_equalTo(self.view);
//    }];
    
    //申请失败
    if ([self.type isEqualToString:@"1"]) {
        failLab.textColor = rgb(233,84,18);
    }
//    [MBProgressHUD showSuccess:@"您的评分较低，请继续努力！" toView:self.view];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
